package com.yb;

import com.yb.core.bean.Resp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/7/3 20:41
 * FileName: DemoApplication
 * Description:
 */

@SpringBootApplication
@RestController
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class,args);
    }


    @GetMapping("/demo")
    public Resp demo(){
        return Resp.ok().data("hello world");
    }
}
